Skip to content

Conversation

@Michael137
Copy link
Member

Previously the parameter wasn't respected. So we would only run the test with whatever stdlib the Makefile.rules deduced.

Confirmed that

lldb-dotest -p TestDataFormatterGenericSet.py --category libstdcxx

passes on my machine.

@Michael137 Michael137 requested a review from labath July 3, 2025 13:12
@Michael137 Michael137 requested a review from JDevlieghere as a code owner July 3, 2025 13:13
@llvmbot llvmbot added the lldb label Jul 3, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 3, 2025

@llvm/pr-subscribers-lldb

Author: Michael Buch (Michael137)

Changes

Previously the parameter wasn't respected. So we would only run the test with whatever stdlib the Makefile.rules deduced.

Confirmed that

lldb-dotest -p TestDataFormatterGenericSet.py --category libstdcxx

passes on my machine.


Full diff: https://github.com/llvm/llvm-project/pull/146882.diff

1 Files Affected:

  • (modified) lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py (+1-1)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
index 03e18ff4335e5..d3d6ef55c6ff0 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
@@ -137,7 +137,7 @@ def test_with_run_command_libcpp(self):
 
     def do_test_ref_and_ptr(self, stdlib_type):
         """Test that the data formatters work on ref and ptr."""
-        self.build()
+        self.build(dictionary={stdlib_type: "1"})
         (self.target, process, _, bkpt) = lldbutil.run_to_source_breakpoint(
             self,
             "Stop here to check by ref and ptr.",

Previously the parameter wasn't respected. So we would only run the test
with whatever stdlib the `Makefile.rules` deduced.

Confirmed that
```
lldb-dotest -p TestDataFormatterGenericSet.py --category libstdcxx
```
passes on my machine.
@Michael137 Michael137 merged commit 522d743 into llvm:main Jul 3, 2025
11 checks passed
@Michael137 Michael137 deleted the lldb/generic-set-on-libstdcxx branch July 3, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants